/**
 * Created by Laggo on 15/11/27.
 */
app.service('navService', ['ajax','$q',function (ajax,$q) {
    this.navList = function (){
        var deferred = $q.defer();
        ajax.get({
            url: 'back/menu'
        }).then(function (result) {
            deferred.resolve(result.childResTreeList);
        })
        return deferred.promise;
    }
}]);